package com.link2room.soundwave.facade.impl;

import com.link2room.common.dto.param.base.BaseParamDto;
import com.link2room.common.jpa.result.QueryResult;
import com.link2room.soundwave.dto.param.inside.PmsRmtypeInsideParamDto;
import com.link2room.soundwave.dto.result.base.PmsGroupRmtypeDto;
import com.link2room.soundwave.facade.IPmsRmtypeHandlerFacadeService;

/**
 * Created by VegetaKo on 2016/12/9.
 */
public abstract class AbstractPmsRmtypeHandlerFacadeServiceImpl implements IPmsRmtypeHandlerFacadeService {

    abstract void saveOrUpdateRmtype(PmsRmtypeInsideParamDto pmsRmtypeInsideParamDto)throws Exception;

    abstract QueryResult<PmsGroupRmtypeDto> listPmsGroupRmtype(BaseParamDto baseParamDto) throws Exception;

    @Override
    public void saveOrUpdateRmtypeHandler(PmsRmtypeInsideParamDto pmsRmtypeInsideParamDto) throws Exception{
        saveOrUpdateRmtype(pmsRmtypeInsideParamDto);
    }

    @Override
    public QueryResult<PmsGroupRmtypeDto> listPmsGroupRmtypeHandler(BaseParamDto baseParamDto) throws Exception {
        return listPmsGroupRmtype(baseParamDto);
    }
}
